package com.atguigu.gulimall.ware.constant;


import lombok.Getter;

@Getter
public class PurchaseConstant {


    @Getter
    public enum PurchaseStatus{
        PURCHSE_STATUS_CREATERD(0,"新建"),
        PURCHASE_STATUS_DISTRIBUTED(1,"已分配"),
        PURCHASE_STATUS_RECEIVED(2,"已领取"),
        PURCHASE_STATUS_FINISHED(3,"已完成"),
        PURCHASE_STATUS_HASERROR(4,"有异常");



        private Integer code;
        private String msg;


        PurchaseStatus(int code, String msg){
            this.code = code;
            this.msg = msg;
        }
    }
    @Getter
    public enum PurchaseItemStatus{
        PURCHSEITEM_STATUS_CREATERD(0,"新建"),
        PURCHASEITEM_STATUS_DISTRIBUTED(1,"已分配"),
        PURCHASEITEM_STATUS_BUYING(2,"正在采购"),
        PURCHASEITEM_STATUS_FINISHED(3,"采购完成"),
        PURCHASEITEM_STATUS_FAILED(4,"采购失败");



        private Integer code;
        private String msg;


        PurchaseItemStatus(int code, String msg){
            this.code = code;
            this.msg = msg;
        }
    }




}
